#ifndef NEWGAME_HPP
#define NEWGAME_HPP

#include <QWidget>
#include <QGridLayout>
#include <QDoubleSpinBox>
#include <QLabel>
#include <QComboBox>
#include <QPushButton>

#include "client.hpp"

class NewGame : public QWidget
{
    Q_OBJECT
public:
    NewGame(Client * client, QWidget * parent = 0);

private:
    Client * _client;
    QGridLayout * _layout;
    QLabel * _labelGoban;
    QLabel * _labelKomi;
    QComboBox * _goban;
    QDoubleSpinBox * _komi;
    QPushButton * _create;
    QPushButton * _cancel;

signals:
    void cancelled();
    void created(quint8 gobanSize, qreal komi);

public slots:
    void reactCreateClicked();

};

#endif // NEWGAME_HPP
